package com.itcam.cm.cart;

import com.itcam.cm.common.anno.EnableGlobaleExceptionHandler;
import com.itcam.cm.common.anno.EnableLoginAuth;
import com.itcam.cm.common.anno.EnableUserTokenFeignInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableGlobaleExceptionHandler
@EnableLoginAuth// 拦截网关的请求(接收)
// @EnableUserTokenFeignInterceptor// 拦截器feign的请求(发出)
@EnableFeignClients(value = "com.itcam.cm.feign.product")
public class CartApplication {

    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class , args) ;
    }

}